package com.ruoyi.system.service.impl;

import java.util.List;

import com.ruoyi.system.domain.ZzxxExamination;
import com.ruoyi.system.mapper.ZzxxExaminationMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.service.IZzxxExaminationService;

/**
 * 题库表Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-06-20
 */
@Service
public class ZzxxExaminationServiceImpl implements IZzxxExaminationService 
{
    @Autowired
    private ZzxxExaminationMapper zzxxExaminationMapper;

    /**
     * 查询题库表
     * 
     * @param id 题库表主键
     * @return 题库表
     */
    @Override
    public ZzxxExamination selectZzxxExaminationById(Long id)
    {
        return zzxxExaminationMapper.selectZzxxExaminationById(id);
    }

    /**
     * 查询题库表列表
     * 
     * @param zzxxExamination 题库表
     * @return 题库表
     */
    @Override
    public List<ZzxxExamination> selectZzxxExaminationList(ZzxxExamination zzxxExamination)
    {
        return zzxxExaminationMapper.selectZzxxExaminationList(zzxxExamination);
    }

    /**
     * 新增题库表
     * 
     * @param zzxxExamination 题库表
     * @return 结果
     */
    @Override
    public int insertZzxxExamination(ZzxxExamination zzxxExamination)
    {
        return zzxxExaminationMapper.insertZzxxExamination(zzxxExamination);
    }

    /**
     * 修改题库表
     * 
     * @param zzxxExamination 题库表
     * @return 结果
     */
    @Override
    public int updateZzxxExamination(ZzxxExamination zzxxExamination)
    {
        return zzxxExaminationMapper.updateZzxxExamination(zzxxExamination);
    }

    /**
     * 批量删除题库表
     * 
     * @param ids 需要删除的题库表主键
     * @return 结果
     */
    @Override
    public int deleteZzxxExaminationByIds(Long[] ids)
    {
        return zzxxExaminationMapper.deleteZzxxExaminationByIds(ids);
    }

    /**
     * 删除题库表信息
     * 
     * @param id 题库表主键
     * @return 结果
     */
    @Override
    public int deleteZzxxExaminationById(Long id)
    {
        return zzxxExaminationMapper.deleteZzxxExaminationById(id);
    }
}
